Optimal. Leaf size=114 \[ \frac{\sec (e+f x) (a-a \sin (e+f x)) (\sin (e+f x)+1)^{\frac{1}{2}-m} (a \sin (e+f x)+a)^m (d \sin (e+f x))^{n+1} F_1\left (n+1;-\frac{1}{2},\frac{1}{2}-m;n+2;\sin (e+f x),-\sin (e+f x)\right )}{d f (n+1) \sqrt{1-\sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.155902, antiderivative size = 114, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.088, Rules used = {3008, 135, 133} \[ \frac{\sec (e+f x) (a-a \sin (e+f x)) (\sin (e+f x)+1)^{\frac{1}{2}-m} (a \sin (e+f x)+a)^m (d \sin (e+f x))^{n+1} F_1\left (n+1;-\frac{1}{2},\frac{1}{2}-m;n+2;\sin (e+f x),-\sin (e+f x)\right )}{d f (n+1) \sqrt{1-\sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3008
Rule 135
Rule 133
Rubi steps
\begin{align*} \int (d \sin (e+f x))^n (a-a \sin (e+f x)) (a+a \sin (e+f x))^m \, dx &=\frac{\left (\sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{a+a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int (d x)^n \sqrt{a-a x} (a+a x)^{-\frac{1}{2}+m} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\left (\sec (e+f x) (a-a \sin (e+f x)) \sqrt{a+a \sin (e+f x)}\right ) \operatorname{Subst}\left (\int \sqrt{1-x} (d x)^n (a+a x)^{-\frac{1}{2}+m} \, dx,x,\sin (e+f x)\right )}{f \sqrt{1-\sin (e+f x)}}\\ &=\frac{\left (\sec (e+f x) (1+\sin (e+f x))^{\frac{1}{2}-m} (a-a \sin (e+f x)) (a+a \sin (e+f x))^m\right ) \operatorname{Subst}\left (\int \sqrt{1-x} (d x)^n (1+x)^{-\frac{1}{2}+m} \, dx,x,\sin (e+f x)\right )}{f \sqrt{1-\sin (e+f x)}}\\ &=\frac{F_1\left (1+n;-\frac{1}{2},\frac{1}{2}-m;2+n;\sin (e+f x),-\sin (e+f x)\right ) \sec (e+f x) (d \sin (e+f x))^{1+n} (1+\sin (e+f x))^{\frac{1}{2}-m} (a-a \sin (e+f x)) (a+a \sin (e+f x))^m}{d f (1+n) \sqrt{1-\sin (e+f x)}}\\ \end{align*}
Mathematica [F] time = 10.8855, size = 0, normalized size = 0. \[ \int (d \sin (e+f x))^n (a-a \sin (e+f x)) (a+a \sin (e+f x))^m \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 4.162, size = 0, normalized size = 0. \begin{align*} \int \left ( d\sin \left ( fx+e \right ) \right ) ^{n} \left ( a-a\sin \left ( fx+e \right ) \right ) \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int{\left (a \sin \left (f x + e\right ) - a\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \left (d \sin \left (f x + e\right )\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-{\left (a \sin \left (f x + e\right ) - a\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \left (d \sin \left (f x + e\right )\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -{\left (a \sin \left (f x + e\right ) - a\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \left (d \sin \left (f x + e\right )\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]